<table width="100%" border="0" cellpadding="0" cellspacing="0"
	style="margin-top: 2px; margin-bottom: 2px">
	<tr>
		<td id="content-header-left" align="center">Categories</td>
		<td id='content-header-center' align='center'><?=$categeoryname?></td>
		<td id="content-header-right"></td>
	</tr>
	<tr>
		<td id="gossip_left_right" bgcolor="#FF9853" valign="top">
        <table>
		        <?php
										foreach ( $main_categeories->result () as $item ) {
											?>
			     <tr>
		       <td><img src="<?=base_url();?>assets/imgs/button-img.gif" /></td>
			   		
			 <td class="sidelinks"><a href="<?=base_url ()?>funlist/index/<?=$item->id?>"
				title="Amazing pictures">&nbsp;<?=trim_name($item->catname,15)?></a></td>
		     		 </tr>

			     <?
										}
										?>
			     	
		     </table>
		</td>


		<td align="center" style="vertical-align: top">
		<table border="0" width="100%" cellspacing="2px" bgcolor="white"
			style="margin-top: 2px; margin-bottom: 2px; margin-left: 4px; margin-right: 4px">
		  
		   <?
					foreach ( $images->result () as $item ) {
						?>
		   <tr>
				<td align='center'
					style="color: brown; font-weight: bold; font-size: 14px">
		   <?if(isset($item->title)){echo $item->title;}?>
		   
		   </td>
			</tr>
			<tr>
				<td>
				<div align='center'><img
					src="<?=base_url ();?>assets/fun/image<?=$item->id?>.jpg" /></div>
				<hr style="color: purple">
				</td>
			</tr>
		   
		   <?
					}
					?>
		   
		   </table>
		</td>
		<td id="gossip_left_right" bgcolor="#FF9853"></td>
	</tr>

</table>